var BallView = JW.Canvas.Component.extend({
	ball : null, // Ball
	
	render: function()
	{
		this._super();
		
		this.graphics.beginPath();
		this.graphics.arc(0, 0, this.ball.r, 0, 2 * Math.PI);
		this.graphics.closePath();
		this.graphics.fillStyle("red");
		this.graphics.fill();
		
		this.updatePosition();
	},
	
	updatePosition: function()
	{
		this.setXY(this.ball.x, this.ball.y);
	}
});
